import {request} from '@/utils/request'
export function getCallbackList(params) {
    return request({
        url: '/api/fizz-manager/callback-config/list',
        method: 'get',
        params
    })
}
export function getGroupList() {
    return request({
        url: '/api/fizz-manager/gateway-group/simple-list',
        method: 'get',
    })
}
export function getAppIdList(params) {
    return request({
        url: '/api/fizz-manager/blade-app-auth/list',
        method: 'get',
        params
    })
}
export function getServiceList() {
    return request({
        url: '/api/fizz-manager/blade-service/service/simple-list',
        method: 'get',
    })
}
export function save(data) {
    return request({
        url: '/api/fizz-manager/callback-config/save',
        method: 'post',
        data
    })
}
export function getPluginList() {
    return request({
        url: '/api/fizz-manager/blade-plugin/list-all',
        method: 'get',
    })
}
/**
 *  删除
 */
 export function remove(ids) {
    return request({
        url: '/api/fizz-manager/callback-config/remove?ids='+ids,
        method: 'post',
    })
}

export function getDetail(id) {
    return request({
        url: `/api/fizz-manager/callback-config/detail/${id}`,
        method: 'get',
    })
}
